package com.studyhub.api.problem.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 问题创建DTO
 * 
 * @author StudyHub Team
 */
@Data
@Schema(name = "ProblemCreateDTO", description = "问题创建请求")
public class ProblemCreateDTO {

    @NotBlank(message = "问题标题不能为空")
    @Size(max = 255, message = "问题标题长度不能超过255字符")
    @Schema(description = "问题标题")
    private String title;

    @NotBlank(message = "问题内容不能为空")
    @Schema(description = "问题内容")
    private String content;

    @Size(max = 500, message = "标签长度不能超过500字符")
    @Schema(description = "问题标签，逗号分隔")
    private String tags;
}
